package org.example.service.domain.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.domain.entity.SysRole;
import org.example.service.domain.SysRoleService;
import org.example.mapper.SysRoleMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author YINDINGJIE
* @description 针对表【sys_role(系统角色)】的数据库操作Service实现
* @createDate 2023-11-29 13:55:50
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{
    @Resource
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> selectRoleByUserId(Long userId) {
        return sysRoleMapper.selectByUserId(userId);
    }
}




